//
//  EFSTopBannerCell.m
//  EFSMobile
//
//  Created by Chuan on 11/30/15.
//  Copyright © 2015 Elephants Financial Service. All rights reserved.
//

#import "EFSTopBannerCell.h"
//#import "ActivityInfo.h"


@interface EFSTopBannerCell()

@property(strong,nonatomic) UIImageView *imageView;

@end

@implementation EFSTopBannerCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.frame = self.bounds;
        self.imageView = [[UIImageView alloc] initWithFrame:self.frame];        
        self.imageView.contentMode = UIViewContentModeScaleToFill;
        self.imageView.userInteractionEnabled = true;
        [self addSubview:self.imageView];
    }
    return self;
}

- (void)configCell:(NSDictionary *)data {
//    ActivityInfo *activityInfo = [MTLJSONAdapter modelOfClass:[ActivityInfo class] fromJSONDictionary:data error:NULL];
//    if (activityInfo.hasImage)
//        [self.imageView sd_setImageWithURL:activityInfo.img placeholderImage:[UIImage imageNamed:@"banner_default"] options:SDWebImageRetryFailed];
}

@end
